/**
 * 
 */
package it.fuesi.myseries.api;

import it.fuesi.myseries.api.ApiClient.HTTPMethod;
import it.fuesi.myseries.api.tasks.GetMySeries;
import it.fuesi.myseries.api.tasks.GetSeasons;
import it.fuesi.myseries.api.tasks.PutSerie;
import it.fuesi.myseries.api.tasks.SearchSerie;


/**
 * @author pascotto
 *
 */
public enum ApiMethod{

	getMySeries(ApiContext.series, new GetMySeries()),
	searchSerie(ApiContext.series,new SearchSerie()),
	putSerie(ApiContext.series, HTTPMethod.PUT, new PutSerie()), 
	getSeasons(ApiContext.series, new GetSeasons());
	
	private ApiContext context;
	private AbstractApiTask apiTask;
	private HTTPMethod method = HTTPMethod.GET;
	
	public ApiContext getContext(){
		return context;
	}
	public HTTPMethod getHTTPMethod(){
		return method;
	}
	
	public AbstractApiTask getApiTask(){
		return this.apiTask;
	}
	
	private ApiMethod(ApiContext context, AbstractApiTask apiTask){
		this.context = context;
		this.apiTask = apiTask;
	}
	
	private ApiMethod(ApiContext context, HTTPMethod method, AbstractApiTask apiTask){
		this.context = context;
		this.apiTask = apiTask;
		this.method = method;
	}
	
}
